package com.weacar.weixin.model;

/**
 * @author Fong
 */
public final class MsgType {

    public final static String EVENT  = "event";
    public final static String TEXT   = "text";
    public final static String IMAGE  = "image";

    public static boolean isEvent(String type) {
        return isType(EVENT, type);
    }

    public static boolean isText(String type) {
        return isType(TEXT, type);
    }

    public static boolean isImage(String type) {
        return isType(IMAGE, type);
    }

    private static boolean isType(String type0, String type) {
        return type0.equals(type);
    }
}
